<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/**
 * Model m_game
 *
 * @author luubk
 * @since 12-06-2012 - 01:22:43
 */
class m_app extends MY_Model
{

    function __construct()
    {
        $this->table = 'apps';

        parent::__construct();
    }

    function _join()
    {        
        $this->db->join('platform', 'platform.pf_id = apps.pf_id');
        $this->db->join('app_cate', 'apps.app_id = app_cate.app_id');
        $this->db->join('category', 'category.cate_id = app_cate.cate_id');
        
        parent::_join();
    }
    
    function multi_select($where = array(), $order = FALSE, $limit = FALSE, $offset = 0)
    {
        $this->db->group_by('apps.app_id');
        return parent::multi_select($where, $order, $limit, $offset);
    }
}


/** 
 * End file m_game
 */
